#include "loglib.h"

int main(){
     logger_t logger;
     int log_id;
     
     log_id = log_init(TEST, "log.txt", &logger);
     
     
     log_write(log_id, INFO, "I'm alive! But nobody cares.\n");
     log_write(log_id, CRITICAL, "I'm gonna crash!\n");
     log_write(log_id, ERROR, "It was a mistake, I'm OK.\n");     
     log_write(log_id, WARNING, "Warning! I'm ending!\n");
     
     
     log_deinit(log_id, logger);
     
     return 0;
}
